home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 2002 January
/
PC Answers January 2002.7z
/
PC Answers January 2002.bin
/
graphics
/
freepixl
/
_SETUP.1
/
haiku.pxl
< prev
next >
Wrap
Text File
|
2000-12-23
|
6KB
|
248 lines
{ Filename : haiku.pxl
Purpose : Interesting variations on errors
Date : January 2, 2000
Author : Stewart DIBBS, VYSOR
History:
Version : 4.20 RELEASE
Update :
Date :
--------------------------------------------------------------------------}
Initialize: {only one instance allowed}
UseCoordinates(PIXEL)
Title$ = "Haiku Error Messages"
WinExist(Title$,Res)
If Res = 0 Then Goto One_Instance
Beep
WinSetActive(Title$,Res)
WinShow(Title$,RESTORE,Res)
End
One_Instance:
UseCaption(Title$) {change the title}
WinLocate(Title$,306,154,688,430,Res)
UseBackground(TRANSPARENT,0,128,192)
WinShow(Title$,NOTOPMOST,Res)
DrawBackGround
DirGet(SourceDir$) {used later for library function calls}
{DragAcceptFile(ENABLE,AcceptFile)}
AutoProgressBar(DISABLE)
InfoMenu(REMOVE)
WaitInput(100)
SetMenu("&File",IGNORE,
"E&xit!",Terminate,
ENDPOPUP)
StatusWindow(ENABLE,BOTTOM,2,400,-1,0,0)
DrawStatusWinText(0,"Ready")
ChangeMenuItem("&StatusBar",CHECK,SBRes)
WinGetClientRect("",cx1,cy1,cx2,cy2)
SetMouse(cx1,cy1,cx2,cy2,ShoHaiku,n,n)
UseFont("Arial",9,19,NOBOLD,NOITALIC,NOUNDERLINE,255,255,255)
DrawShadowText(40,70,"Click anywhere to show a message!",0,0,0,1)
Wait_for_Input:
WaitInput()
Terminate:
End
Concept:
MessageBox(OK,1,INFORMATION,
"This is a skeleton of a PiXCL application. You could briefly
describe your application's function here, or provide some
basic help information.",
"PiXCL Skeleton Concept",Res)
Goto Wait_for_Input
ShowAppHelp:
{An application Help file usually has the same name as the application.}
Winhelp("haiku.hlp",CONTENTS,"")
Goto Wait_for_Input
About:
AboutUser("Haiku Error Messages", { or substitute Title$}
"Two lines of text goes here e.g. Application function.",
"Four Lines of additional information goes here, perhaps contact information and Web addresses")
Goto Wait_for_Input
ViewToolBar:
GetMenuStatus("&ToolBar",CHECKED,Res)
If Res = 0
GoSub MakeToolbar
ChangeMenuItem("&ToolBar",CHECK,Res)
Else
Toolbar()
ChangeMenuItem("&ToolBar",UNCHECK,Res)
Endif
Goto Wait_for_Input
ViewStatusBar:
GetMenuStatus("&StatusBar",CHECKED, Res)
If Res = 0
StatusWindow(ENABLE,BOTTOM,2,400,-1,0,0)
DrawStatusWinText(0,"Ready")
ChangeMenuItem("&StatusBar",CHECK,Res)
Else
StatusWindow(DISABLE,BOTTOM,2,400,-1,0,0)
ChangeMenuItem("&StatusBar",UNCHECK,Res)
Endif
Goto Wait_for_Input
{--- Style Suggestion: place all subroutines at the end of the script.}
ShoHaiku:
Random(12,RandomNumber)
If RandomNumber = 0 Then GoSub ShowMsg00
If RandomNumber = 1 Then GoSub ShowMsg01
If RandomNumber = 2 Then GoSub ShowMsg02
If RandomNumber = 3 Then GoSub ShowMsg03
If RandomNumber = 4 Then GoSub ShowMsg04
If RandomNumber = 5 Then GoSub ShowMsg05
If RandomNumber = 6 Then GoSub ShowMsg06
If RandomNumber = 7 Then GoSub ShowMsg07
If RandomNumber = 8 Then GoSub ShowMsg08
If RandomNumber = 9 Then GoSub ShowMsg09
If RandomNumber = 10 Then GoSub ShowMsg10
If RandomNumber = 11 Then GoSub ShowMsg11
If RandomNumber = 12 Then GoSub ShowMsg12
If RandomNumber = 13 Then GoSub ShowMsg13
If RandomNumber = 14 Then GoSub ShowMsg14
If RandomNumber = 15 Then GoSub ShowMsg15
If RandomNumber = 16 Then GoSub ShowMsg16
Goto Wait_for_Input
ShowMsg00:
Msg00$ = "File really that big?
It might be very useful.
But now it is gone."
DebugMsgBox(Msg00$)
Return
ShowMsg01:
Msg01$ = " The Web site you seek
cannot be located but
endless others exist."
DebugMsgBox(Msg01$)
Return
ShowMsg02:
Msg02$ = "Chaos reigns within.
Reflect, repent, and reboot.
Order shall return."
DebugMsgBox(Msg02$)
Return
ShowMsg03:
Msg03$ = "ABORTED effort:
Close all that you have,
You ask way too much."
DebugMsgBox(Msg03$)
Return
ShowMsg04:
Msg04$ = " First snow, then silence.
This thousand dollar screen dies
so beautifully."
DebugMsgBox(Msg04$)
Return
ShowMsg05:
Msg05$ = " With searching comes loss
and the presence of absence:
''My Novel'' not found."
DebugMsgBox(Msg05$)
Return
ShowMsg06:
Msg06$ = " The Tao that is seen
Is not the true Tao, until
You bring fresh toner."
DebugMsgBox(Msg06$)
Return
ShowMsg07:
Msg07$ = " Windows NT crashed.
I am the Blue Screen of Death.
No one hears your screams."
DebugMsgBox(Msg07$)
Return
ShowMsg08:
Msg08$ = " Stay the patient course.
Of little worth is your ire.
The network is down."
DebugMsgBox(Msg08$)
Return
ShowMsg09:
Msg09$ = " A crash reduces
your expensive computer
to a simple stone."
DebugMsgBox(Msg09$)
Return
ShowMsg10:
Msg10$ = " Yesterday it worked.
Today it is not working.
Windows is like that."
DebugMsgBox(Msg10$)
Return
ShowMsg11:
Msg11$ = " Three things are certain:
Death, taxes, and lost data.
Guess which has occurred."
DebugMsgBox(Msg11$)
Return
ShowMsg12:
Msg12$ = " You step in the stream,
but the water has moved on.
This page is not here."
DebugMsgBox(Msg12$)
Return
ShowMsg13:
Msg12$ = " Out of memory.
We wish to hold the whole sky,
But we never will."
DebugMsgBox(Msg13$)
Return
ShowMsg14:
Msg12$ = " Having been erased,
The document you're seeking
Must now be retyped."
DebugMsgBox(Msg14$)
Return
ShowMsg15:
Msg12$ = " Rather than a beep
Or a rude error message,
These words: ''File not found.''."
DebugMsgBox(Msg15$)
Return
ShowMsg16:
Msg12$ = " Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank."
DebugMsgBox(Msg16$)
Return
ll shortcuts have disappeared.
Screen. Mind. Both are blank."
DebugMsgBox(Msg16$)
Return